package com.doufeng.order.util;

import cn.hutool.core.lang.Snowflake;

public class OrderNoGenerator {

    private static final Snowflake SNOW_FLAKE = new Snowflake(1, 1);

    public static String generate() {
        return "OD" + SNOW_FLAKE.nextId();   // OD168823874532123
    }
}